package com.ivory.valley.controller;

import java.util.UUID;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ivory.valley.common.IvoryValley;

@RestController
@RequestMapping("/pay")
public class PayController {

	/**
	 * 支付模块
	 */
	public void payForTask(HttpServletRequest request ,HttpServletResponse response ,String openid){
		
	}
	/**
	 * 统一下单
	 * @param url
	 */
	public void unifiedorder(String url){
		//参数
		//appid
		String appid = IvoryValley.ConstantAndURL.appid;
		//商户号
		String mch_id = IvoryValley.ConstantAndURL.mch_id;
		//设备号  可以为终端设备号(门店号或收银设备ID)，PC网页或公众号内支付可以传"WEB"
		String device_info = "WEB";
		//随机数字符串
		String nonce_str = UUID.randomUUID().toString();
		//签名
		String sign = "";
	}
}
